package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 讲解@RequestMapping注解的使用
 * @author stone
 * @date 2022/08/05 16:59
 */
@Controller
public class RequestMappingController {

    @RequestMapping({"index","home","home/index"})
    @ResponseBody
    public BaseRespVo index() {
        return BaseRespVo.ok();
    }

    /*@RequestMapping({"/user/*","user*"})
    @ResponseBody
    public BaseRespVo user() {
        System.out.println("user");
        return BaseRespVo.ok();
    }*/
}
